9ed98bb503b1a0aadf0dc1683c8185f646c2d904,python/src/com/jetbrains/python/validation/PyBuiltinAnnotator.java,PyBuiltinAnnotator,visitPyReferenceExpression,#PyReferenceExpression#,21
Before Change
ResolveResult[] resolved = node.multiResolve(false); // constructors, etc give multiple results...
if (resolved.length > 0) {
if (PyBuiltinCache.hasInBuiltins(resolved[0].getElement())) { // ...but we only care about single-resolvers
Annotation ann = getHolder().createInfoAnnotation(node, null);
ann.setTextAttributes(PyHighlighter.PY_BUILTIN_NAME);
}
}
}
After Change
ann = getHolder().createInfoAnnotation(parent.getFirstChild(), null); // first child is there, or we'd not parse as deco
}
else ann = getHolder().createInfoAnnotation(node, null);
ann.setTextAttributes(PyHighlighter.PY_BUILTIN_NAME);
}
}
}